package com.zhanghe.mall.pojo;

import com.zhanghe.mall.pojo.common.BasePojo;

import javax.persistence.*;

/**
 * 第三方账户表
 *
 * @author Clevo
 * @date 2018/10/11
 */
@Entity
@Table(name = "account_platform")
public class AccountPlatform extends BasePojo {

    @ManyToOne
    @JoinColumn(name = "account_id")
    public Account account;
    /**
     * 平台id
     */
    public String platformId;
    /**
     * 品台access_token
     */
    public String platformToken;
    /**
     * 品台类型 : 1:github
     */
    public Integer type;
    /**
     * 昵称
     */
    public String nickname;
    /**
     * 头像
     */
    public String avatar;

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public String getPlatformId() {
        return platformId;
    }

    public void setPlatformId(String platformId) {
        this.platformId = platformId;
    }

    public String getPlatformToken() {
        return platformToken;
    }

    public void setPlatformToken(String platformToken) {
        this.platformToken = platformToken;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}
